package com.eight.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("rentcar-customer")
public interface CouponHistoryFeign {

    /**
     * 插入用户一条优惠券使用记录
     * @param username 用户账户
     * @param cid 优惠券id
     * @param type 1 发放 2 使用
     * @return 执行的结果
     */
    @RequestMapping("/customer/tbIntegrationHistory/insertIntegrationHistory/{username}/{cid}/{type}")
    int insertIntegrationHistory(@PathVariable String username, @PathVariable Integer cid, @PathVariable Integer type);
}
